package com.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.LogDao;
import com.pojo.Log;
import com.util.sqlSessionFactory;

public class LogService {
	SqlSession sql = sqlSessionFactory.getSqlSession();
	LogDao dao = sql.getMapper(LogDao.class);

	public void insert(
			// @Param("id") String id,
			@Param("user_id") String user_id,
			@Param("operaTion") String operaTion,
			@Param("archive_id") String archive_id
	// @Param("date") String date,
	// @Param("time") String time
	) {
		dao.insert(user_id, operaTion, archive_id);
		sql.commit();
	}

}
